﻿<%@ Page Title="Strategic Asset Management Las Vegas: Graphs" Language="C#" MasterPageFile="~/Site2.master" AutoEventWireup="true"
    CodeBehind="Dashboard2.aspx.cs" Inherits="LenderClearingHouse.Dashboard2"
    ValidateRequest="false" EnableViewState="true" %>
<%@ Register TagPrefix="dcwc" Namespace="Dundas.Charting.WebControl" Assembly="DundasWebChart" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=4.1.7.1213, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="cphPageHeader" runat="server">
    Total Properties
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
    <div class="panel7">
        <table width="100%" cellpadding="5px" cellspacing="0" border="0">
          <tr>
            <td>
              Type View:&nbsp;
              <asp:DropDownList ID="ddlView" runat="server" Width="100px" AutoPostBack="true" OnSelectedIndexChanged="ddlView_SelectedIndexChanged">
                <asp:ListItem Text="Monthly" Value="1"/>
                <asp:ListItem Text="Quarterly" Value="2"/>
                <asp:ListItem Text="Yearly" Value="3"/>
              </asp:DropDownList>
            </td>
            <td>
               Property type:&nbsp;
               <asp:DropDownList ID="ddlPropertyType" runat="server" Width="100px" AutoPostBack="true" OnSelectedIndexChanged="ddlView_SelectedIndexChanged">
               </asp:DropDownList>
            </td>
            <td>
              <asp:Label ID="lbIvestor" runat="server" Text="Investor"></asp:Label>&nbsp;
              <telerik:RadComboBox ID="cbInvestor" runat="server" Width="200" EmptyMessage="Type a Investor Name"
                  AllowCustomText="false" MarkFirstMatch="true" AutoPostBack="true" DataSourceID="SqlDataSourceInvestorCombo"
                  DataTextField="UserName" DataValueField="UserId" 
                  onselectedindexchanged="cbInvestor_SelectedIndexChanged">
               </telerik:RadComboBox>
               <asp:SqlDataSource ID="SqlDataSourceInvestorCombo" runat="server" ConnectionString="<%$ ConnectionStrings:SQLConnection %>"
                  SelectCommand="getInvestorsCombo" SelectCommandType="StoredProcedure" />
            </td>
            
            <td>
            <asp:CalendarExtender ID="CalendarFromDate" runat="server" TargetControlID="txtFromDate" PopupButtonID="btnFromDate" Format="MM.dd.yyyy">
            </asp:CalendarExtender>
            <asp:MaskedEditExtender ID="meeFromDate" runat="server" TargetControlID="txtFromDate" CultureName="en-US" Mask="99.99.9999" clearmaskonlostfocus="false" MaskType="None"></asp:MaskedEditExtender>
            <asp:TextBox ID="txtFromDate" Format="dd.MM.yyyy" TodaysDateFormat="dd.MM.yyyy" runat="server" width="100px" ></asp:Textbox>
            <asp:Image ID="btnFromDate" runat="server" Style="vertical-align: middle; cursor: pointer;"
                AlternateText="Choose Date"  ImageUrl="~/images/Calendar_icon.png" Width="16" Height="16" />
            <span> - </span>
            <asp:CalendarExtender ID="CalendarToDate" runat="server" TargetControlID="txtToDate" PopupButtonID="btnToDate" Format="MM.dd.yyyy">                             </asp:CalendarExtender>
            <asp:MaskedEditExtender ID="meeToDate" runat="server" TargetControlID="txtToDate" CultureName="en-US" Mask="99.99.9999" clearmaskonlostfocus="false" MaskType="None"></asp:MaskedEditExtender>
            <asp:TextBox ID="txtToDate" Format="dd.MM.yyyy" TodaysDateFormat="dd.MM.yyyy" runat="server" width="100px" ></asp:Textbox>
            <asp:Image ID="btnToDate" runat="server" Style="vertical-align: middle; cursor: pointer;"
                AlternateText="Choose Date"  ImageUrl="~/images/Calendar_icon.png" Width="16" Height="16" />  &nbsp;
            <asp:Button id="reloadButton" runat="server" Text="Show" OnClick="calendarDate_Changed" />  
             </td>
          </tr>
          <tr>
              <td></td><td></td><td></td>
              <td>
                 <asp:Label ID ="lblDataValidate" style = "display: none; color: red" runat="server"></asp:Label>
              </td>
          </tr>
        </table>
    </div>

        <dcwc:Chart id="Chart1" runat="server" Height="800px" Width="1160px" Palette="Pastel">
            <Series>
                <dcwc:Series Name="Total properties" BorderWidth="5" BorderColor="Black"></dcwc:Series>
            </Series>
            <ChartAreas>
                <dcwc:ChartArea Name="Default"></dcwc:ChartArea>
            </ChartAreas>
        </dcwc:Chart>
</asp:Content>
